package com.nd.sdp.android.provide;

import com.nd.sdp.android.provide.di.DaggerPersonComponent;
import com.nd.sdp.android.provide.fly.IFly;

import javax.inject.Inject;
import javax.inject.Provider;

public class Person {

    @Inject
    Provider<IFly> fly;

    @Inject
    Person() {
    }

    private void fly() {
        fly.get().fly();
        fly.get().fly();
        fly.get().fly();
    }

    public static void main(String[] args) {
        Person person = DaggerPersonComponent.create().person();
        person.fly();
    }

}
